Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated cgi.js with try\catch to stop crash on invalid headers #2

Open
wants to merge 1 commit into
base: Desmodue-patch-1
Choose a base branch
from

Conversation

Desmodue
Copy link
Owner

@Desmodue Desmodue commented Sep 9, 2016

NodeJS 5.10.1. Headers from buffer stream not being parsed correctly causing a crash when trying to set them for the response object.
Try\Catch added to prevent this.
The problem comes from header-stack, working on a pull request for that to parse the headers correctly.
This error may be unique to my cgi however this fix should not break any other implementations.

NodeJS 5.10.1. Headers from buffer stream not being parsed correctly causing a crash when trying to set them for the response object.
Try\Catch added to prevent this.
The problem comes from header-stack, working on a pull request for that to parse the headers correctly.
This error may be unique to my cgi however this fix should not break any other implementations.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant